﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Tool;


namespace AutoMachine
{
    public partial class Frm_Vision : Form
    {
        Tool.AutoResize FormResize = new AutoResize();
        public Frm_Vision()
        {
            InitializeComponent();
             FormResize.SetAutoResize(this);//窗体缩放实例化
        }
        #region 窗体实例化
        /// <summary>
        /// 窗体实例化
        /// </summary>
        private static Frm_Vision _instance;
        public static Frm_Vision Instance
        {
            get
            {
                if (_instance == null || _instance.IsDisposed)
                    _instance = new Frm_Vision();
                return _instance;
            }
        }
        #endregion

        private void Frm_Vision_Load(object sender, EventArgs e)
        {
           
        }

        private void RoundButton_Config_Click(object sender, EventArgs e)
        {
            //if (Tool.FormsControl.CloseForm("Frm_VpSet", this.panelMain) == false)
            //{
            //    Tool.FormsControl.OpenForm(new Frm_VpSet(), this.panelMain);
            //}
        }

        private void roundButton1_Click(object sender, EventArgs e)
        {
            //if (Tool.FormsControl.CloseForm("Frm_VpDebug", this.panelMain) == false)
            //{
            //    Tool.FormsControl.OpenForm(new Frm_VpDebug(), this.panelMain);
            //}
        }
    }
}
